/*
 * init.h
 *
 * Operations that change global variables
 *
 */
#ifndef __INIT_H__
#define __INIT_H__

#include "mcu_regs.h"
#include "core.h"
#include "config.h"
#include "debug.h"
#include "interrupt.h"
#include "example.h"
#include "key.h"
#include "tick.h"
#include "event.h"
#include "power_manager.h"

/** global bit flag  */
/* tick expired  1: sucees 0: fail*/
extern bool g_tick_expired_10;
extern bool g_tick_expired_100;
extern bool g_tick_expired_500;
extern bool g_tick_expired_1000;

extern uint16_t g_event_ui_mask;
extern uint8_t g_event_sys_mask;

void init(void);


#endif